#pragma once

#include <set>
#include "ClientConnectionHandler.h"

namespace AlgoTrading
{
	namespace ConnectionLibrary
	{

		class ClientConnectionsManager
		{
		public:
			ClientConnectionsManager(void);
			virtual ~ClientConnectionsManager(void);

			void Start(ClientConnectionHandlerPtr connection);
			void Stop(ClientConnectionHandlerPtr connection);
			void Remove(ClientConnectionHandlerPtr connection);

			void StopAll();

		private:
			std::set<ClientConnectionHandlerPtr> connections;
		};

	}
}


